package com.sxsy.datasource.mapper;

import com.sxsy.datasource.bean.HQJCBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface HqjcDataMapper {
    public void insertRtData(@Param("Mkbm") String MKBM, @Param("Kjmc")String KJMC, @Param("Bh")String BH, @Param("Cysj")String CYSJ, @Param("Cydd")String CYDD, @Param("O2")float O2, @Param("N2")float N2, @Param("CH4")float CH4, @Param("CO2")float CO2, @Param("CO")float CO, @Param("C2H4")float C2H4, @Param("C2H6")float C2H6, @Param("C2H2")float C2H2, @Param("C3H8")float C3H8, @Param("WXB")float WXB, @Param("Status")String Status);//第一次向实时表插入数据
    public void updateRtData(@Param("Mkbm") String MKBM, @Param("Kjmc")String KJMC, @Param("Bh")String BH, @Param("Cysj")String CYSJ, @Param("Cydd")String CYDD, @Param("O2")float O2, @Param("N2")float N2, @Param("CH4")float CH4, @Param("CO2")float CO2, @Param("CO")float CO, @Param("C2H4")float C2H4, @Param("C2H6")float C2H6, @Param("C2H2")float C2H2, @Param("C3H8")float C3H8, @Param("WXB")float WXB, @Param("Status")String Status);//更新实时表数据
    public void insertHisData(@Param("Mkbm") String MKBM, @Param("Kjmc")String KJMC, @Param("Bh")String BH, @Param("Cysj")String CYSJ, @Param("Cydd")String CYDD, @Param("O2")float O2, @Param("N2")float N2, @Param("CH4")float CH4, @Param("CO2")float CO2, @Param("CO")float CO, @Param("C2H4")float C2H4, @Param("C2H6")float C2H6, @Param("C2H2")float C2H2, @Param("C3H8")float C3H8, @Param("WXB")float WXB, @Param("Status")String Status);//向历史表插入数据
    public List<HQJCBean> DoesKeyExit();
}
